package com.gnkexy.springframework.test.event;

import com.gnkexy.springframework.context.event.ApplicationContextEvent;

public class CustomEvent extends ApplicationContextEvent {

    private long id;

    private String massage;

    /**
     * Constructs a prototypical Event.
     *
     * @param source the object on which the Event initially occurred
     * @throws IllegalArgumentException if source is null
     */
    public CustomEvent(Object source,long id,String massage) {
        super(source);
        this.id = id;
        this.massage = massage;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }
}
